using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Versions
{
    /// <summary>
    /// <para>Create Versioned View</para>
    /// <para>Creates a versioned view on a table or feature class.</para>
    /// <para>在表或要素类上创建版本化视图。</para>
    /// </summary>    
    [DisplayName("Create Versioned View")]
    public class CreateVersionedView : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateVersionedView()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Table or Feature Class</para>
        /// <para>Input table or feature class for which a versioned view will be created.</para>
        /// <para>将为其创建版本化视图的输入表或要素类。</para>
        /// </param>
        public CreateVersionedView(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Versioned View";

        public override string CallName => "management.CreateVersionedView";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_dataset, _in_name, _out_dataset];

        /// <summary>
        /// <para>Input Table or Feature Class</para>
        /// <para>Input table or feature class for which a versioned view will be created.</para>
        /// <para>将为其创建版本化视图的输入表或要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table or Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Versioned View Name</para>
        /// <para>Name for the versioned view that is created. If nothing is specified the output versioned view name is the name of the table or feature class with _evw appended to the end.</para>
        /// <para>创建的版本化视图的名称。如果未指定任何内容，则输出版本化视图名称为表或要素类的名称，并在末尾追加_evw。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Versioned View Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_name { get; set; } = null;


        /// <summary>
        /// <para>Output Table or Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table or Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public CreateVersionedView SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}